package com.tiancheng.trade.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tiancheng.trade.commom.core.data.PageInfo;
import com.tiancheng.trade.merchant.exception.BusinessException;
import com.tiancheng.trade.merchant.model.Organization;

import com.tiancheng.trade.merchant.vo.merchant.QueryOrgPageResVO;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface IOrganizationService extends IService<Organization> {

    PageInfo<QueryOrgPageResVO> findPageList(Organization organization) throws BusinessException;

    List<Organization> findList(Organization organization) throws BusinessException;

    int remove(Long id) throws BusinessException;

    int update(Organization organization) throws BusinessException;

    int create(Organization organization) throws BusinessException;

    Organization findDetail(Long id) throws BusinessException;

    void export(Organization organization, HttpServletRequest request, HttpServletResponse response) throws IOException;

    List<Organization> findAll();
}
